﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ThemQuyen.ascx.cs" Inherits="iShopping.Admin.UserControl.ThemQuyen" %>
<link href="../../css/cssPhanQuyen.css" rel="stylesheet" type="text/css" />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" AllowPaging="True"
            BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" 
            CellPadding="5" DataKeyNames="MaPhanQuyen" 
            onpageindexchanging="GridView1_PageIndexChanging" 
            onrowdeleting="GridView1_RowDeleting" onrowediting="GridView1_RowEditing" 
            onrowupdating="GridView1_RowUpdating" 
            onrowcancelingedit="GridView1_RowCancelingEdit" 
            onrowupdated="GridView1_RowUpdated" Width="100%" 
         onselectedindexchanged="GridView1_SelectedIndexChanged1" >
            <Columns>
                <asp:BoundField DataField="MaPhanQuyen" HeaderText="Mã Quyền" >
                    <ItemStyle HorizontalAlign="Center" Width="20%" />
                </asp:BoundField>
                <asp:BoundField DataField="TenQuyen" HeaderText="Tên Quyền" >
                    <ItemStyle HorizontalAlign="Left" Width="50%" />
                </asp:BoundField>
                <asp:CommandField ButtonType="Image" DeleteImageUrl="~/images/Admin/delete.gif" 
                    ShowDeleteButton="True" HeaderText="Xóa" >
                    <ItemStyle HorizontalAlign="Center" Width="10%" />
                </asp:CommandField>
            </Columns>
            <FooterStyle BackColor="White" ForeColor="#000066" />
            <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
            <RowStyle ForeColor="#000066" />
            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
 
        </asp:GridView>
 <div id="ketqua"  align="center">
    </div>
    <!--  end ket qua -->
    
    <div id="dulieu" align="center">
  <div id="ma">
     Mã Quyền:
        <asp:TextBox ID="txtMaQuyen" runat="server" />
    </div>
  <div id="ten">
            Tên Quyền:
            <asp:TextBox ID="txtTenQuyen" runat="server" />
       </div>
     </div>
     <!-- end du lieu -->
     
   <div id="them" align="center">
          <asp:Button ID="btnThem" runat="server"  Text="Thêm Quyền" 
              onclick="btnThem_Click" />
    </div>